home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The PC-SIG Library 10
/
The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso
/
PC_SIGCD
/
07
/
3
/
DISK0735.ZIP
/
BACKUP.BAT
< prev
next >
Wrap
DOS Batch File
|
1989-08-14
|
595b
|
24 lines
echo off
cls
if "%2" == "" goto LN1
if "%1" == "" goto LN1
goto LN2
:LN1
echo No parameters present or second parameter is missing.
echo -
echo - type: BACKUP (source drive letter): (destination drive letter):
echo -
echo - example: to backup data files on drive A to backup disk on drive B
echo - type: BACKUP A: B: (enter)
echo - or type: BACKUP A:\XXX B:\YYY (enter)
echo - where: XXX and YYY are sub directory names
goto END
:LN2
del %2\*.dat
del %2\*.idx
del %2\*.msc
copy %1\*.dat %2/v
copy %1\*.idx %2/v
copy %1\*.msc %2/v
dir %2
:END